package com.weibo4j.api.util;

import org.apache.http.client.HttpClient;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.conn.PoolingClientConnectionManager;

public class HttpClientUtil {
    private static HttpClient httpClient;
    
    static {
        PoolingClientConnectionManager cm = new PoolingClientConnectionManager();
        cm.setMaxTotal(100);
        httpClient = new DefaultHttpClient(cm);
    }
    
    public static HttpClient getHttpClient() {
        return httpClient;
    }
    
}
